package dfsketches.gr3d;

import java.util.Hashtable;

public class FluctuatingAnimationConstructor {

	public FluctuatingAnimationConstructor() {
		pairs = new Hashtable<Bone, FluctuatingMatrixPair>();
	}
	
	public void addPairForBone(Bone bone, Matrix3D median, Matrix3D deviation) {
		pairs.put(bone, new FluctuatingMatrixPair(median, deviation));
	}
	
	public FluctuatingAnimation construct() {
		return new FluctuatingAnimation(pairs);
	}
	
	private Hashtable<Bone, FluctuatingMatrixPair> pairs;
}
